import request from '@/utils/request'

// 查询学生个人资料列表
export function listData(query) {
  return request({
    url: '/studentssm/studata/list',
    method: 'get',
    params: query
  })
}

// 查询学生个人资料详细
export function getData(id) {
  return request({
    url: '/studentssm/studata/' + id,
    method: 'get'
  })
}

// 新增学生个人资料
export function addData(data) {
  return request({
    url: '/studentssm/studata',
    method: 'post',
    data: data
  })
}

// 修改学生个人资料
export function updateData(data) {
  return request({
    url: '/studentssm/studata',
    method: 'put',
    data: data
  })
}

// 删除学生个人资料
export function delData(id) {
  return request({
    url: '/studentssm/studata' + id,
    method: 'delete'
  })
}

// 用户证件照上传
export function stuphoto(data) {
  return request({
    url: '/studentssm/studata/stuphoto',
    method: 'post',
    data: data
  })
}

// 用户身份证正面上传
export function stuidphoto1(data) {
  return request({
    url: '/studentssm/studata/stuidphoto1',
    method: 'post',
    data: data
  })
}

// 用户身份证反面上传
export function stuidphoto2(data) {
  return request({
    url: '/studentssm/studata/stuidphoto2',
    method: 'post',
    data: data
  })
}
